From: Sebastian Keller Date: Fri, 9 Nov 2012 04:09:53 +0000 (+0100) Subject: power: indicate 1 hour remaining correctly X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5457 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e757b069875ba3baf6201c6da19fbcccb26b72d9;p=gnome-shell.git power: indicate 1 hour remaining correctly Before 60 minutes remaining were displayed as "0 minutes" now it is "1 hour". https://bugzilla.gnome.org/show_bug.cgi?id=687958 --- diff --git a/js/ui/status/power.js b/js/ui/status/power.js index a5f2625f5..d80407207 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -96,7 +96,7 @@ const Indicator = new Lang.Class({ let minutes = time % 60; let hours = Math.floor(time / 60); let timestring; - if (time > 60) { + if (time >= 60) { if (minutes == 0) { timestring = ngettext("%d hour remaining", "%d hours remaining", hours).format(hours); } else {